import cv2

def main():
    img = cv2.imread('10/1.bmp', 0)
    SobleY = cv2.Sobel(src=img, ddepth=-1, dx=0, dy=1)
    cv2.imshow('origin', img)
    cv2.imshow('SobleY', SobleY)
    cv2.waitKey(0)
    cv2.destroyAllWindows()

if __name__ == "__main__":
    main()